package com.group.admin.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.common.utils.PageUtils;
import com.group.common.utils.Query;

import com.group.admin.dao.DistributionAgentDao;
import com.group.admin.entity.DistributionAgentEntity;
import com.group.admin.service.DistributionAgentService;


@Service("distributionAgentService")
public class DistributionAgentServiceImpl extends ServiceImpl<DistributionAgentDao, DistributionAgentEntity> implements DistributionAgentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DistributionAgentEntity> page = this.page(
                new Query<DistributionAgentEntity>().getPage(params),
                new QueryWrapper<DistributionAgentEntity>()
        );

        return new PageUtils(page);
    }

}